package com.cxl.springboot.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.validation.Schema;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class User {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(notes="用户编号",value="用户编号",example = "1")
    private int id;
    @ApiModelProperty(notes="用户登录名",value="用户登录名")
    private String username;
    @ApiModelProperty(notes="用户密码",value="用户密码")
    private String password;
    @ApiModelProperty(notes="用姓名",value="用姓名")
    private String nickname;
    @ApiModelProperty(notes="用户邮箱",value="用户邮箱")
    private String email;
    @ApiModelProperty(notes="用户电话",value="用户电话")
    private String phone;
    @ApiModelProperty(notes="用户地址",value="用户地址")
    private String address;
    @ApiModelProperty(notes="创建时间",value="创建时间")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private Date createTime;
}
